import React from 'react';
import {HashRouter as Router, Route, Switch} from 'react-router-dom';

import Frame from '@/layouts/Frame/Frame';
import Home from '@/views/Home/Home';
import Detail from '@/views/Detail/Detail';

export default (
  <Switch>
    <Frame>
      <Route exact path="/" component={Home}></Route>
      <Route exact path="/detail" component={Detail}></Route>
      <Route path="/detail/:id" component={Detail}></Route>
    </Frame>
  </Switch>
)